package nieAS.manager {
	import flash.events.EventDispatcher;
	
	public class CurrentManager extends EventDispatcher {
		private static var mainManager:CurrentManager;
		
		public function CurrentManager():void {
			if (mainManager == null) {
				mainManager = this;
			}else {
				throw new Error("CurrentManager唯一");
			}
		}
		
		public static function get manager():CurrentManager {
			if (mainManager == null) {
				new CurrentManager();
			}
			return mainManager;
		}
	}
	
}